package day3.demo7_treeMap;

import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;

public class Test {
    public static void main(String[] args) {
        TreeMap t = new TreeMap();
        t.put("a1","123");
        t.put("a3","344");
        t.put("a2","888");

        Set set = t.keySet();
        for (Object o : set) {
            System.out.println(o + ":" + t.get(o));
        }

        TreeSet ts = new TreeSet();
        ts.add("a1");
        ts.add("a3");
        ts.add("a2");

    }
}
